package com.gitee.xmhzzz.component.spring.cloud.context;

import com.gitee.xmhzzz.component.common.enums.EnvironmentEnum;
import org.springframework.beans.factory.annotation.Value;

/**
  * @ClassName
  * @Description
  * @Author wzq
  * @Date 2023/12/17 19:22
  * @Version 1.0
  */
public class EnvironmentContext {

    @Value("${spring.profiles.active}")
    private String active;

    private EnvironmentEnum getEnv() {
        return EnvironmentEnum.of(active);
    }

}
